package com.aerfazhe.service.impl;

import com.aerfazhe.pojo.User;
import com.aerfazhe.service.UserService;

import javax.jws.WebService;

/**
 * @Author：wk
 * @Create：2022/4/2/11:05
 * @Description：TODO
 * @Version：1.0
 */
@WebService(
        targetNamespace = "wsdl.aerfazhe.com", //命名空间
        name = "userPortType",
        serviceName = "userService", //服务Name名称
        portName = "userPortName",
        endpointInterface = "com.aerfazhe.service.UserService" // 指定webService的接口类，此类也需要接入@WebService注解
)
public class UserServiceImpl implements UserService {


    @Override
    public User getUserName(String name) {
        User user = new User(name, 28);
        return user;
    }


}
